#!/bin/sh

TARGET=TouchMouse

make

mkdir -p $TARGET.app
cp Info.plist $TARGET.app/
mv $TARGET $TARGET.app/
rm -rf $TARGET.app/.svn

chmod -R a+r $TARGET.app
chmod a+x $TARGET.app
chmod a+x $TARGET.app/$TARGET

zip -r $TARGET.zip $TARGET.app

# source
mkdir -p $TARGET
cp *.m *.h Makefile Info.plist $TARGET
tar cvzf $TARGET.src.tar.gz $TARGET
rm -rf $TARGET
